package com.dy.exception;

import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;

/**
 * @ClassName:
 * @Author: 仄言in
 * @Desctiption: (描述):全局异常配置，把找不到资源的异常交给springboot处理
 * @Date: 2021/5/7 14:50
 * @Version 1.0 (版本)
 */
@ResponseStatus(HttpStatus.NOT_FOUND)
public class NotFoundException extends RuntimeException{
    public NotFoundException() {
    }

    public NotFoundException(String message) {
        super(message);
    }

    public NotFoundException(String message, Throwable cause) {
        super(message, cause);
    }
}
